/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Behavioral.Visitor;

/**
 *
 * @author Juan
 */
public class VacacionesVisitor extends Visitor{
    private int total;
    
    
    public void VacacionesVisitor() {
        total=0;
    }
    
    @Override
    public void visit(Empleado e){
        total+=e.getDiasLibres();
    }
    public int getDiasLibres(){
        return total;
    }
    
    
}
